<?php
/**
 * Created by PhpStorm.
 * User: sMile
 * Date: 16/5/14
 * Time: 上午7:19
 */
require_once("config_db.php");


if(!$link = mysqli_connect(HOST,USERNAME,PASSWORD)){
    die("connect database failed");
}

if(!mysqli_select_db($link,DATABASE)){
    die("connect database failed"+ DATABASE);
}

global $link;

//define('DB_LINK', $link);